package com.uni.service;

import com.uni.entity.Commodity;
import com.uni.entity.CommodityType;

import java.util.List;

/**
 * --------------project-------------
 *
 * @Author Unirithe  - Mr.Chao
 * - CSDN:
 * https://blog.csdn.net/Unirithe
 * - GitHub:
 * https://github.com/unirithe
 * @create 2021/12/20 18:34
 * ------------------------------------------
 */
public interface CommodityService {
    List<CommodityType> queryAllType();
    boolean insertCommodity(Commodity commodity);
    List<Commodity> queryAll();
    String queryTypeById(int id);
    List<Commodity> query(int begin, int end, int tid);
    int count();
    int countByTypeId(int id);
    boolean insertAction(int uid, int cid);
    Commodity query(int id);
    List<Commodity> queryByUid(int uid);
    boolean deleteCommodity(int cid);
}
